package com.project.class8_24.decoration;

public class Test {
    public static void main(String[] args) {
        //加了两份糖和一份冰块的爱尔兰咖啡
        IProduct p = new IrishCoffee();
        p = new Sugar(p);
        p = new Sugar(p);
        p = new Ice(p);

        System.out.println(p.getInfo());
        System.out.println("价格："+p.getPrice());

        //加了一份牛奶、一份糖、一份冰块的蓝山咖啡
    }
}
